from dataclasses import dataclass
from datetime import datetime
from typing import Optional


@dataclass
class AntMonitorStockInfo:
    stock_code: Optional[str] = None  # 股票代码
    stock_plates: Optional[str] = None  # 股票分类
    stock_current_number: Optional[int] = None  # 当前持股数
    stock_max_number: Optional[int] = None  # 最大持股数
    stock_advice_number: Optional[int] = None  # 建议持股数
    monitor_origin_price: Optional[float] = None  # 原始价格
    monitor_income_ratio: Optional[float] = None  # 盈利比例
    monitor_target_ratio: Optional[float] = None  # 目标比例
    monitor_stop_ratio: Optional[float] = None  # 止损比例
    stock_status: Optional[int] = None  # 股票状态
    stock_category: Optional[int] = None  # 股票分类
    stock_tag: Optional[str] = None  # 打标标签
    other_info: Optional[str] = None  # 其他信息
    last_cal_date: Optional[datetime] = None  # 最近计算日期
    monitor_income_money: Optional[float] = None  # 盈利金额
    monitor_current_price: Optional[float] = None  # 当前价格
    stock_final_point: Optional[int] = None  # 积分
    stock_focus_level: Optional[int] = None  # 关注级别
    stock_risk_level: Optional[int] = None  # 风险级别
    is_update: Optional[bool] = None  # 是否需要更新
    stock_name: Optional[str] = None  # 股票名称
    stock_next_advice: Optional[str] = None  # 下一步建议
    month_up_day: Optional[int] = None  # 30交易日内上涨天数
    week_up_day: Optional[int] = None  # 本周上涨天数
